#if !defined(AFX_DLGGROUPPIPEINFO_H__94EEA5DB_6691_42BB_BBA8_8A6AA58642E1__INCLUDED_)
#define AFX_DLGGROUPPIPEINFO_H__94EEA5DB_6691_42BB_BBA8_8A6AA58642E1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgGroupPipeInfo.h : header file
//
#include "UeList.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgGroupPipeInfo dialog

class CDlgGroupPipeInfo : public CDialog
{
// Construction
public:
	CDlgGroupPipeInfo(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgGroupPipeInfo)
	enum { IDD = IDD_GROUP_PIPE_INFO };
	CString	m_strSN;
	double	m_dbDis;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgGroupPipeInfo)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgGroupPipeInfo)
	afx_msg void OnBtnPara();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	bool Set(CString &strPipeInfo, CUeList &lstPipePara);
	void Show(CString strPipeInfo, CUeList lstPipePara);
	bool Add(CString &strPipeInfo, CUeList &lstPipePara);
	bool Edit(CString &strPipeInfo, CUeList &lstPipePara);

	static CString FormatPipeInfo(CString strSN, double dbDis);
	static CString GetSNFromPipeInfo(CString strInfo);
	static double GetDisFromPipeInfo(CString strInfo);

private:
	CString m_strWindowText;
	bool m_bModeSet;
	CUeList m_lstPipePara;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGGROUPPIPEINFO_H__94EEA5DB_6691_42BB_BBA8_8A6AA58642E1__INCLUDED_)
